/**
 * 学习目标：创建组件，使用单独的组件维护
 */
import React from 'react';
import ReactDOM from 'react-dom';
import Footer from './components/Footer';
import Header from './components/Header';

class App extends React.Component {
  render() {
    return (
      <div>
        <Header></Header>
        <Footer></Footer>
      </div>
    );
  }
}
const divNode = (
  <>
    <App></App>
  </>
);

ReactDOM.render(divNode, document.getElementById('root'));
